﻿using System;

namespace IceDog.DNF.Program.Poker.Core.PokerException
{
    /// <summary>
    /// 获取卡牌超出范围异常
    /// </summary>
    public class CardOutOfRangeException:ApplicationException
    {
        private static string message = "获取卡牌超出范围异常，值只能在1到52之间(包括1和52)";

        /// <summary>
        /// 牌堆内容
        /// </summary>
        public CardList DeckComtents { get; }

        /// <summary>
        /// 获取卡牌超出范围异常
        /// </summary>
        /// <param name="cardList"></param>
        public CardOutOfRangeException(CardList cardList):base(message)
        {
            DeckComtents = cardList;
        }
    }
}
